import fetch from 'common/src/utils/fetch';
/**
 *
 * 查询权限(分页)
 */
export function findAuthPushTimeListPage(data) {
  return fetch({
    url: '/api/arrangementservice/arrangeAuth/findAuthPushTimeListPage',
    method: 'post',
    data
  })
}

/**
 * 新增菜单功能点发布时间（本研开课权限）
 * @param {data} data
 */
export function insertAuthPushTime(data) {
  return fetch({
    url: '/api/arrangementservice/arrangeAuth/insert',
    method: 'post',
    data
  });
}

/**
 * 查看菜单功能点发布时间详情
 * @param {data} data
 */
export function findAuthPushTimeById(query) {
  return fetch({
    url: '/api/arrangementservice/arrangeAuth/findAuthPushTimeById?' + query,
    method: 'get'
  })
}

/**
 * 修改菜单功能点发布时间(本研开课权限)
 * @param {data} data
 */
export function updateAuthTime(data) {
  /*return fetch({
    url: '/api/arrangementservice/arrangeAuth/updateAuthTime',
    method: 'put',
    data
  })*/
  return fetch({
    url: '/api/arrangementservice/arrangeAuth/update',
    method: 'put',
    data
  });
}

/**
 * 批量删除菜单功能点发布时间
 * @param {data} data
 */
export function deleteAuthPushTimeByIds(data) {
  return fetch({
    url: '/api/arrangementservice/arrangeAuth/deleteAuthPushTimeByIds',
    method: 'post',
    data
  })
}

export default {
  'findAuthPushTimeListPage': findAuthPushTimeListPage,
  'insertAuthPushTime':insertAuthPushTime,
  'updateAuthTime':updateAuthTime,
  'deleteAuthPushTimeByIds': deleteAuthPushTimeByIds,
  'findAuthPushTimeById': findAuthPushTimeById
}


